dxp-ux

(0 reviews)

Get PlanDetails By PlanInstanceId ( TMF-622 )

This operation list the plan instance information from the Aria (Billing System) by using plan instance id

URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/productOrder
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
Query Param
nametypedescriptionrequired
productOrderItem.product.idStringThe client defined ID of the plan instance
Note - To work this functionality the "productOrderItem.product.id" should be expected in request.
Y
Request
curl --location 'https://nonprod.esb.cloud.lla.com/test/dxp-ux/dxp-ux/v1/PR/productOrder?productOrderItem.product.id=8024X00000CFsRbQAL' \
--header 'X-Correlation-Id: 644e1dd7-2a7f-18fb681143258' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d'
Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - listProduct request processed successfully, response body contains an entity corresponding to the requested resource.

{
    "relatedParty": [
        {
            "id": "23519213-23519143",
            "@type": "AccountRef"
        }
    ],
    "@type": "ProductOrder",
    "productOrderItem": [
        {
            "id": "6078",
            "@type": "Plan",
            "quantity": 1,
            "product": {
                "id": "8024X00000CFsRbQAL",
                "description": "Generic Device",
                "name": "LLA_General_Device",
                "status": "active",
                "@type": "PlanInstance",
                "productCharacteristic": [
                    {
                        "name": "Original Financed Amount",
                        "value": "1199.99",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Payment Installments",
                        "value": "36",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Remaining Financed Amount",
                        "value": "1033.34",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Installments Invoiced",
                        "value": "5",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Monthly Installment",
                        "value": "33.33",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Installment ID",
                        "value": "639524829248292",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Description (English)",
                        "value": "Samsung Galaxy S23 Ultra",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Description (Spanish)",
                        "value": "Samsung Galaxy S23 Ultra",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Established On",
                        "value": "2023-12-13",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Status",
                        "value": "ACTIVE",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promotional Amount Total",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promotional Monthly Amount",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Promo Discounts",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Promo Discounts Given",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Current Promotional Discount Balance",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promo Description (English)",
                        "value": "",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promo Description (Spanish)",
                        "value": "",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "last_bill_date",
                        "value": "2024-05-11T02:46:54"
                    },
                    {
                        "name": "next_bill_date",
                        "value": "2024-06-11T00:00:00"
                    },
                    {
                        "name": "bill_thru_date",
                        "value": "2024-06-10T00:00:00"
                    }
                ]
            }
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
relatedPartyarrayRelated Entity reference. A related party defines party or party role linked to a specific entity.N
relatedParty.idstringClient specified account identifierN
relatedParty.@typestringRelated Party TypeN
productOrderItemarrayAn identified part of the order. A product order is decomposed into one or more order items.N
productOrderItem.idstringThe Aria assigned ID of the plan for this client plan instance idN
productOrderItem.quantityintegerThe number of units assigned to this instanceN
productOrderItem.@typestringType of orderItemN
productOrderItem.productobjectA product to be created defined by value or existing defined by reference.N
productOrderItem.product.idstringThe client defined ID of the plan instanceN
productOrderItem.product.namestringThe client defined ID of the plan on this instanceN
productOrderItem.product.descriptionstringThe name of the plan on this instanceN
productOrderItem.product.statusstringThe status code of the plan instanceN
productOrderItem.product.@typestringProduct typeN
productOrderItem.product. productCharacteristicarrayDescribes a given characteristic of an object or entity through a name/value pair.N
productOrderItem.product. productCharacteristic.namestringName of the characteristicN
productOrderItem.product. productCharacteristic.valuestringThe value of the characteristicN
productOrderItem.product. productCharacteristic.@typestringType of characteristicN
@typestringOrder typeN
productCharacteristic values
Characteristic Nametypedescriptionrequired
Original Financed AmountstringThe value that was assigned to this field on this plan instanceN
Number of Payment InstallmentsstringThe value that was assigned to this field on this plan instanceN
Remaining Financed AmountstringThe value that was assigned to this field on this plan instanceN
Number of Installments InvoicedstringThe value that was assigned to this field on this plan instanceN
Monthly InstallmentstringThe value that was assigned to this field on this plan instanceN
Installment IDstringThe value that was assigned to this field on this plan instanceN
Description (English)stringThe value that was assigned to this field on this plan instanceN
Description (Spanish)stringThe value that was assigned to this field on this plan instanceN
Established OnstringThe value that was assigned to this field on this plan instanceN
StatusstringThe value that was assigned to this field on this plan instanceN
Promotional Amount TotalstringThe value that was assigned to this field on this plan instanceN
Promotional Monthly AmountstringThe value that was assigned to this field on this plan instanceN
Number of Promo DiscountsstringThe value that was assigned to this field on this plan instanceN
Number of Promo Discounts GivenstringThe value that was assigned to this field on this plan instanceN
Current Promotional Discount BalancestringThe value that was assigned to this field on this plan instanceN
Promo Description (English)stringThe value that was assigned to this field on this plan instanceN
Promo Description (Spanish)stringThe value that was assigned to this field on this plan instanceN
last_bill_datedatetimeThe last date on which the plan instance was billedN
next_bill_datedatetimeThe next date on which the plan instance is scheduled to be billedN
bill_thru_datedatetimeThe date through which the plan instance has been billedN

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400 ,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }
  ]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401 ,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }
  ]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{

      "code" : 404,
       "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }
  ]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /{businessId}/productOrder"
        }]
}
[ 429 ]

Too Many Requests - client has sent too many requests in a space of time (rate limiting). When a server is under attack or just receiving a very large number of requests from a single party, responding to each with a 429 status code will consume resources. Therefore, servers may drop connections or take other steps instead of responding with the 429 status code, when limiting resource usage.

{
  "errors" : [{

      "code" : 429,
       "message" : "Too many request.",
      "description" : "The client sent too many requests and server is not able to serve them all at the moment."
    }
  ]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "The request failed due to an internal error.",
      "description": ""
    }
  ]
}
[ 501]
{
   "errors":[
      {
         "code":501,
         "message":"Not implemented",
         "description":"Operation GET /productOrder for Business Id: XXXX not implemented"
      }
   ]
}
[ 503 ]

Service Unavailable - temporary maintenance of service, try again later. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay will be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response. Note: The existence of the 503 status code does not imply that a server will use it when becoming overloaded. Servers may simply refuse the connection.

    Retry-After: 120

Reviews